﻿@model TopicModel
@using Giant.Core.Domain.Seo
@using Giant.Core.Infrastructure

@{ 
    if (!Model.IsPasswordProtected)
    {
        //title
        //meta
        Html.AddMetaDescriptionParts(Model.MetaDescription);
        Html.AddMetaKeywordParts(Model.MetaKeywords);
    }

    var canonicalUrlsEnabled = EngineContext.Current.Resolve<SeoSettings>().CanonicalUrlsEnabled;
    if (canonicalUrlsEnabled)
    {
        var topicUrl = Url.RouteUrl("Topic", new { SeName = Model.SeName }, this.Request.Url.Scheme);
        Html.AddCanonicalUrlParts(topicUrl);
    }
}

@using Giant.Web.Models.Topics;


@if (!Model.IsPasswordProtected)
{
    @Html.Raw(Model.Body)
}

